/**
 * <p>
 * 弹窗配置
 *
 * @Author：Roy
 * @Description：项目
 * @Date：Create by 2023-11-23 09:55:22
 */
const popConfig = {
  'scene-project': {
    'scene-project-add': {
      popTitle: '新增项目',
      popType: 'OperateSceneProject',
      visible: true,
      popConfig: {
        width: '50%',
        maxHeight: "auto",
        destroy: true,
        popType: 'add'
      }
    },
    'scene-project-edit': {
      popTitle: '编辑项目',
      popType: 'OperateSceneProject',
      visible: true,
      popConfig: {
        width: '50%',
        maxHeight: "auto",
        destroy: true
      }
    },
    'scene-project-detail': {
      popTitle: '项目详情',
      popType: 'SceneProjectDetail',
      visible: true,
      popConfig: {
        width: '50%',
        maxHeight: "auto",
        destroy: true
      }
    },
    'scene-company-look-facility': {
      popTitle: '查看设备列表',
      popType: 'FacilityList',
      visible: true,
      popConfig: {
        width: '50%',
        destroy: true,
        maxHeight: '5000px',
        paramName: 'sceneProjectId',
        path: 'device.queryList',
      }
    },
    'scene-project-delete': {
      showType: 'confirm',
      confirmHeader: '提示',
      idCode: 'dict',
      confirmContent: '将删除XXX的所有关联数据，是否确认删除？',
      splitProp: 'projectName',
      paramsProp: { id: 'id' },
      path: 'sceneProject.deleteById'
    },
    'scene-project-import': {
      popTitle: '导入',
      popType: 'AddFile',
      visible: true,
      popConfig: {
        width: '50%',
        hideFooterBtn: true,
        // 上传接口
        upLoadPath: '/energy-carbon/ecp-admin/sceneProject/upload',
        // 模板下载参数
        tplName: 'sceneProjectRenderer'
      }
    },
    'scene-project-deleteBatch': {
      showType: 'confirm',
      dataType: 'multipleList',
      confirmHeader: '提示',
      confirmContent: '将批量删除XXX项目及所有绑定关联的数据，是否确认删除？',
      splitProp: 'projectName',
      paramsProp: { ids: 'id' },
      path: 'sceneProject.batchDelete'
    }
  }
}

export default {}
export { popConfig }
